@import "./function";

html,body {
	font-family: "PingFangSC-Regular", "Helvetica-Neue", "Helvetica", Arial, sans-serif;
	color: #424653;
  font-weight: 700;
}
//去掉router-link的下划线
a.router-link-active {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
/*改写mint-ui的header组件*/
.mint-header {
	height: px2rem(45px);
	background-color: #fff;
	color: #424653;
	font-size: 18px;

  @include border-1px(#F2F3F4);

  .mint-header-title {
    font-weight: 700;
  }
  .mint-button-text {
    font-weight: 700;
  }
  }

.mint-header.is-fixed{
  z-index:99;
}

.mint-button--primary {
	background-color: #5C8DDE;
}
/*改写mint-ui的loadermore组件*/
.mint-loadmore-bottom {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}
//.mint-loadmore {
//  overflow: visible;
//}

/*select选择框*/
select {
	border: solid 1px #e4e4e4;
	appearance:none;
    -moz-appearance:none;
    -webkit-appearance:none;
    padding-right: 14px;
    background-color: #fff;
}

select::-ms-expand { display: none; }

//@media (-webkit-min-device-pixel-radio: 1.5), (-min-device-pixel-radio: 1.5) {
//  .border-1px {
//    &::after {
//      transform: scaleY(0.7);
//    }
//  }
//
//}
//@media (-webkit-min-device-pixel-radio: 2), (-min-device-pixel-radio: 2) {
//.border-1px {
//  &::after {
//    transform: scaleY(0.5);
//  }
//}
//}


//上拉加载样式
.page-infinite-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 50px;
  line-height: 50px;
  font-size: 14px;
}

//输入框样式1---登录注册

.input-box {
  width: px2rem(300px);
  margin: 0 auto;
  .form-item{

    .position-relative {
      position: relative;
      #canvas {
        position: absolute;
        right: 0;
        //top: px2rem(6px);
        bottom: px2rem(6px);
      }
      .position-right {
        position: absolute;
        right:0;
        bottom:px2rem(12px);
        padding-left: 9px;
        padding-right: 9px;
        line-height: px2rem(20px);
        font-size: 14px;
        border-left: 1px solid rgba(255,255,255,0.30);

      }
    }
    .form-item-value{

      height: px2rem(52px);
      .form-item-core{

        width: 100%;
        height: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        border-left: none;
        border-right: none;
        border-top: none;
        background-color: transparent;
        border-bottom: 1px solid #888;
        color: #FFFFFF;
        font-size: 14px;
        &.is-danger{
          border-bottom: 1px solid #ff5555;
        }

      }
    }
    .error-label {
      padding-top: 4px;
      color: #FF5555;
    }
  }
  .label-left {
    font-size: 12px;
    line-height: px2rem(17px);
    overflow: hidden;
    margin-top: px2rem(20px);
    margin-bottom: px2rem(35px);
    .float-left {
      float: left;
    }
    color: #5C8DDE;
  }

  .label {
    @include font-dpr(12px);
    line-height: px2rem(17px);
    overflow: hidden;
    margin-top: px2rem(20px);
    margin-bottom: px2rem(35px);
    .float-right {
      float: right;
    }
  }
  .mint-button--primary {
    background-color: #5C8DDE;
    width: 100%;
  }
  .submit-button {
    margin-top: px2rem(35px);
  }

}
//输入框样式2---免费预约
.cell {
  .input.is-danger, .textarea.is-danger {
    border-color: #ff3860;
  }
  .input.is-active, .input:active, .input:focus, .textarea.is-active, .textarea:active, .textarea:focus {
    border-color: #00d1b2;
    outline: none;
  }

  padding-top: 1px;
  .label {
    font-size: 16px;
    line-height:1;
    margin-top: px2rem(15px);
    margin-bottom: px2rem(14px);
    padding-left:px2rem(8px);
    border-left: 2px solid #4A90E2;
  }
  .input-wrap {
    height: px2rem(40px);
    position: relative;
    .input-box {
      width: 100%;
      height: 100%;
      font-size: 14px;
      color: #4A90E2;
      border: 1px solid #e4e4e4;
      border-radius: 2px;
      text-indent: 1em;
      color: #4A90E2;
    }
    & input.input-box {
      color: #424653;
    }
    .qui-edge {
      display: inline-block;
      width: 0;
      height: 0;
      border-width: 4px;
      border-style: dashed;
      border-color: transparent;
      overflow: hidden;
      vertical-align: middle;
      position: absolute;
      right: 10px;
      top: 50%;
      margin-top: -2px;
      cursor: pointer;
      border-top-color: #393d49;
      border-top-style: solid;
      transition: all .3s;
      -webkit-transition: all .3s;
    }
  }
}

//小三角
.qui-edge {
  display: inline-block;
  width: 0;
  height: 0;
  border-width: 4px;
  border-style: dashed;
  border-color: transparent;
  overflow: hidden;
  vertical-align: middle;
  margin-top: 2px;
  margin-left: 6px;
  cursor: pointer;
  border-top-color: #393d49;
  border-top-style: solid;
  transition: all .3s;
  -webkit-transition: all .3s;
}


//textarea 默认样式
textarea {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  font-size: 13px;
  color: #888888;
  line-height: 20px;
  padding: 6px 7px 9px 9px;
  border: 0;
  overflow: hidden;
}


//未读消息小红点
.unread:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ff3824;
  border-radius: 100%;
  top: -.10667rem;
  right: -.10667rem;
}

//发布需求页面--自定义按钮
.qv-button {
  width: 100%;
  height: 100%;
  display: inline-block;
  border: 1px solid #E4E4E4;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  &.on {
    background-color: #5C8DDE;
    border: none;
    box-shadow: 0 2px 4px 0 rgba(74,144,226,0.60);
    color: #fff;
  }
}


//视频播放
.qvplayer {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #000;
  .x-video-player {
    width: 100%;
    height: 100%;
    position: absolute;
    padding: 0;
    margin: 0;
    z-index: 1;
    video {
      width: 100%;height: 100%; object-fit: fill; position: relative;
    }
  }
  .x-video-button {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 85;
    .x-video-play-ico {
      width: 36px;
      /*height: 44px;*/
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%,-50%);
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
  .x-video-poster {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }


}

//上拉加载
.page-loadmore-wrapper {
  overflow-y: scroll;
}

//改变表单光标颜色
input, textarea, [contenteditable] {
  color: #495057;
  caret-color: #5C8DDE;
}


/*布局适配*/
/*调用方法：px2rem()*/
@function px2rem($px, $base-font-size: 37.5px) {
  @return ($px / $base-font-size) * 1rem;
}